import request from '@/utils/request'

// 获取学科列表
export const getSubjectList = (params: object) => {
  return request({
    url: '/subject/list',
    params
  })
}

// 更改学科状态
export const changeSubjectStatus = (data: object) => {
  return request({
    url: '/subject/status',
    method: 'POST',
    data
  })
}

// 删除学科
export const deleteSubject = (data: object) => {
  return request({
    url: '/subject/remove',
    method: 'POST',
    data
  })
}

// 新增学科
export const addSubject = (data: object) => {
  return request({
    url: '/subject/add',
    method: 'POST',
    data
  })
}

// 编辑学科
export const updateSubject = (data: object) => {
  return request({
    url: '/subject/edit',
    method: 'POST',
    data
  })
}
